package com.example.service.impl;

import com.example.common.response.ServerResponse;
import com.example.dto.NovelDTO;
import com.example.service.NovelService;
import com.example.spiders.NovelSpider;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;

/**
 * @Description: 小说业务处理实现类
 * @Auther: Swain
 * @Date: 2021/1/18 16:24
 * @Version 1.0.0
 */
@Log4j2
@Service
public class NovelServiceImpl implements NovelService {


    @Override
    public ServerResponse addSingle(NovelDTO novelDTO) {



        NovelSpider.crawling(novelDTO.getNovelId());



        return ServerResponse.createBySuccess();
    }
}
